<div class="breadcrum">
    <p>
        <a href="{$config->site_url('master/overview')}">Master</a><span></span><small>Barang Supply</small>
    </p>
    <div class="clear"></div>
</div>
<div class="sub-content">
    <div class="search-box">
        <h3><a href="#">Search</a></h3>
        <form method="post" action="{$config->site_url('master/barangsupply/proses_cari')}">
            <table width="100%" border="0" class="table-search">
                <tbody>
                    <tr>
                        <th align="left" width="10%">Kode</th>
                        <td align="left" width="15%">
                            <input type="text" style="width: 100px;" maxlength="50" size="10" value="{$search.barangsupply_cd|default:''}" name="barangsupply_cd"> 
                        </td>
                        
                        <th align="left" width="10%">Nama</th>
                        <td align="left" width="35%">
                            <input type="text" style="width: 190px;" maxlength="50" size="30" value="{$search.barangsupply_name|default:''}" name="barangsupply_name"> 

                            <input type="submit" value="Tampilkan" name="save" class="submit">
                            <input type="submit" value="Reset" name="save" class="submit">   
                        </td>                        
                    </tr>

                </tbody>
            </table>
        </form>
    </div>
</div>
<div class="sub-content">
    <div class="navigation"> 
        <div class="pageRow">
            <div class="pageNav">
                <ul>
                    <li class="info"><strong>{$pagination.start|default:'0'} - {$pagination.end|default:'0'}</strong> dari <strong>{$pagination.total|default:'0'}</strong> Data</li>
                    {$pagination.data|default:''}
                </ul>
            </div>
            <div class="clear"></div>
        </div>
        <div class="navigation-button">
            <ul>
                <li><a href="{$config->site_url('master/barangsupply/add')}"><img alt="" src="{$BASEURL}/resource/doc/images/icon/add-icon.png">Tambah Data</a></li>
                <!--
                    <li><a href="{$config->site_url('master/barangsupply/print')}"><img alt="" src="{$BASEURL}/resource/doc/images/icon/printer-icon.png">Print out</a></li> 
                -->
            </ul>
            <div class="clear"></div>
        </div>
    </div> 
    <!-- notification template -->
    {include file="base/templates/notification.html"}
    <!-- end of notification template--> 
    <table width="100%" class="table-view">
        <tbody>
            <tr>
                <th width="5%">No</th>
                <th width="20%">Kode</th>  
                <th width="63%">Nama</th>  
                <th width="12%"></th>
            </tr>


            {assign var="numb" value=1}

            {foreach from=$rs_id key=no item=result}

            <tr {if ($no % 2) <> 0}class="blink-row"{/if}>
                <td align="center">{$numb++}</td>   
                <td>{$result.barangsupply_cd}</td>  
                <td>{$result.barangsupply_name}</td>  
                <td align="center">
                    <a href="{$config->site_url({'master/barangsupply/edit/'|cat:$result.barangsupply_cd})}" class="button-edit">Edit</a>
                    <a href="{$config->site_url({'master/barangsupply/delete/'|cat:$result.barangsupply_cd})}" class="button-hapus">Hapus</a>
                </td>
            </tr>
            {foreachelse}
            <tr>
                <td colspan="4">Data masih kosong</td>
            </tr>
            {/foreach}
        </tbody>
    </table> 
</div>